package com.tau.egonetwork.gui.facebook;

import org.eclipse.swt.widgets.Shell;

import com.tau.egonetwork.facebook.FacebookFriendProfile;
import com.tau.egonetwork.facebook.FacebookUtils;
import com.tau.egonetwork.gui.core.ProfileEditDialog;
import com.tau.egonetwork.profiles.MainProfile;
import com.tau.egonetwork.profiles.Profile;

public class FacebookNewProfileDialog extends ProfileEditDialog<Long> {

	public FacebookNewProfileDialog(Shell parent, MainProfile<Long> mainProfile) {
		super(parent, mainProfile);
	}

	@Override
	protected Profile<Long> generateNewProfile(String name) {
		return new FacebookFriendProfile(
				FacebookUtils.generateRandomID(),
				name);
	}
		
}
